package org.jeecg.modules.yusuan.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.activiti.engine.task.Task;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.gudingzichan.entity.Gudingzichan;
import org.jeecg.modules.workflow.dto.FlowData;
import org.jeecg.modules.workflow.dto.ProcessNode;
import org.jeecg.modules.yusuan.entity.CaiwuBiaozhun;
import org.jeecg.modules.yusuan.entity.CaiwuNz;
import org.jeecg.modules.yusuan.entity.NianDuHuiZong;

import java.util.List;
import java.util.Map;

/**
 * @Description: caiwu_yusuan
 * @Author: jeecg-boot
 * @Date:   2020-06-15
 * @Version: V1.0
 */
public interface ICaiwuNzService extends IService<CaiwuNz> {

    String startFlow(String recordId);
    void startFlow2(CaiwuNz caiwuNz, FlowData flowData);

    int jingfeiTypeCount(String deptId, String jingfeiType, Integer effective);

    public void complateTask(LoginUser loginUser, FlowData flowData);
    public void applyAgain(CaiwuNz caiwuNz, LoginUser user);
    public IPage<CaiwuNz> myApplyList(Page<CaiwuNz> page, LoginUser user, CaiwuNz caiwuNz);
    public IPage<CaiwuNz> myTodoTasks(Page<CaiwuNz> page, LoginUser user, CaiwuNz caiwuNz);
    public IPage<CaiwuNz> myDoneTasks(Page<CaiwuNz> page, LoginUser user, CaiwuNz caiwuNz);

}
